package marmalius;
public class LevelUp {
    public LevelUp() {}

    public void levelup(int skill, int ID) {
        client c = (client) PlayerHandler.getInstance().getPlayer(ID);

        switch (skill) {
        case 0: // Attack levelup
            c.sendFrame164(6247);
            c.stillgfx(199, c.absX, c.absY);
            c.sendFrame126(
                    "@gre@Congratulations, you just advanced an attack level!",
                    6248);
            c.sendFrame126(
                    "@whi@Your attack level is now "
                            + c.getLevelForXP(c.playerXP[0]) + " .",
                            6249);
            c.sendMessage("Congratulations, you just advanced an attack level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 1: // Strength
            c.sendFrame164(6206);
            c.stillgfx(199, c.absX, c.absY);
            c.sendFrame126("@gre@Awsome! you just advanced a strength level!",
                    6207);
            c.sendFrame126(
                    "@whi@Your strength level is now "
                            + c.getLevelForXP(c.playerXP[2]) + " .",
                            6208);
            c.sendMessage("Congratulations, you just advanced a strength level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 2: // Defence
            c.sendFrame164(6253);
            c.stillgfx(199, c.absX, c.absY);
            c.sendFrame126("@gre@Awsome! you just advanced a defence level!",
                    6254);
            c.sendFrame126(
                    "@whi@Your defence level is now "
                            + c.getLevelForXP(c.playerXP[1]) + " .",
                            6255);
            c.sendMessage("Congratulations, you just advanced a defence level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 3: // Hitpoints
            c.sendFrame164(6216);
            c.stillgfx(199, c.absX, c.absY);
            c.sendFrame126("@gre@Awsome! you just advanced a hitpoints level!",
                    6217);
            c.sendFrame126(
                    "@whi@Your hitpoints level is now "
                            + c.getLevelForXP(c.playerXP[3]) + " .",
                            6218);
            c.sendMessage(
                    "Congratulations, you just advanced a hitpoints level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 4: // Ranging
            c.sendFrame164(4443);
            c.stillgfx(199, c.absX, c.absY);
            c.sendFrame126("@gre@Awsome! you just advanced a ranged level!",
                    4444);
            c.sendFrame126(
                    "@whi@Your ranged level is now "
                            + c.getLevelForXP(c.playerXP[4]) + " .",
                            4445);
            c.sendMessage("Congratulations, you just advanced a ranging level.");
            c.stillgfx(199, c.absY, c.absX);
            break;

        case 5: // Prayer
            c.sendFrame164(6242);
            c.stillgfx(199, c.absX, c.absY);
            c.sendFrame126("@gre@Awsome! you just advanced a prayer level!",
                    6243);
            c.sendFrame126(
                    "@whi@Your prayer level is now "
                            + c.getLevelForXP(c.playerXP[5]) + " .",
                            6244);
            c.sendMessage("Congratulations, you just advanced a prayer level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 6: // Magic
            c.sendFrame164(6211);
            c.stillgfx(199, c.absX, c.absY);
            c.sendFrame126("@gre@Awsome!, you just advanced a magic level!",
                    6212);
            c.sendFrame126(
                    "@whi@Your magic level is now "
                            + c.getLevelForXP(c.playerXP[6]) + " .",
                            6213);
            c.sendMessage("Congratulations, you just advanced a magic level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 7: // Cooking
            c.sendFrame164(6226);
            c.sendFrame126("@gre@Awsome! You just advanced a cooking level!",
                    6227);
            c.sendFrame126(
                    "@whi@Your cooking level is now "
                            + c.getLevelForXP(c.playerXP[7]) + " .",
                            6228);
            c.sendMessage("Congratulations, you just advanced a cooking level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 8: // Woodcutting
            c.sendFrame164(4272);
            c.sendFrame126("@gre@Awsome! You just advanced a woodcutting level!",
                    4273);
            c.sendFrame126(
                    "@whi@Your woodcutting level is now "
                            + c.getLevelForXP(c.playerXP[8]) + " .",
                            4274);
            c.sendMessage(
                    "Congratulations, you just advanced a woodcutting level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 9: // Fletching
            c.sendFrame164(6231);
            c.sendFrame126("@gre@Awsome! You just advanced a fletching level!",
                    6232);
            c.sendFrame126(
                    "@whi@Your fletching level is now "
                            + c.getLevelForXP(c.playerXP[9]) + " .",
                            6233);
            c.sendMessage(
                    "Congratulations, you just advanced a fletching level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 10: // fishing
            c.sendFrame164(6258);
            c.sendFrame126("@gre@Awsome! You just advanced a fishing level!",
                    6259);
            c.sendFrame126(
                    "@whi@Your fishing level is now "
                            + c.getLevelForXP(c.playerXP[10]) + " .",
                            6260);
            c.sendMessage("Congratulations, you just advanced a fishing level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 11: // firemaking
            c.sendFrame164(4282);
            c.sendFrame126("@gre@Awsome! You just advanced a fire-making level!",
                    4283);
            c.sendFrame126(
                    "@whi@Your firemaking level is now "
                            + c.getLevelForXP(c.playerXP[11]) + " .",
                            4284);
            c.sendMessage(
                    "Congratulations, you just advanced a fire making level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 12: // crafting
            c.sendFrame164(6263);
            c.sendFrame126("@gre@Awsome! You just advanced a crafting level!",
                    6264);
            c.sendFrame126(
                    "@whi@Your crafting level is now "
                            + c.getLevelForXP(c.playerXP[12]) + " .",
                            6265);
            c.sendMessage("Congratulations, you just advanced a crafting level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 13: // Smithing
            c.sendFrame164(6221);
            c.sendFrame126("@gre@Awsome! You just advanced a smithing level!",
                    6222);
            c.sendFrame126(
                    "@whi@Your smithing level is now "
                            + c.getLevelForXP(c.playerXP[13]) + " .",
                            6223);
            c.sendMessage("Congratulations, you just advanced a smithing level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 14: // Mining
            c.sendFrame164(4416);
            c.sendFrame126("@gre@Awsome! You just advanced a mining level!",
                    4417);
            c.sendFrame126(
                    "@whi@Your mining level is now "
                            + c.getLevelForXP(c.playerXP[14]) + " .",
                            4438);
            c.sendMessage("Congratulations, you just advanced a mining level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 15: // Herblore
            c.sendFrame164(6237);
            c.sendFrame126("@gre@Awsome! You just advanced a herblore level!",
                    6238);
            c.sendFrame126(
                    "@whi@Your herblore level is now "
                            + c.getLevelForXP(c.playerXP[15]) + " .",
                            6239);
            c.sendMessage("Congratulations, you just advanced a herblore level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 16: // Agility
            c.sendFrame164(4277);
            c.sendFrame126("@gre@Awsome! You just advanced a agility level!",
                    4278);
            c.sendFrame126(
                    "@whi@Your agility level is now "
                            + c.getLevelForXP(c.playerXP[16]) + " .",
                            4279);
            c.sendMessage("Congratulations, you just advanced an agility level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 17: // Thieving
            c.sendFrame164(4261);
            c.sendFrame126("@gre@Awsome! You just advanced a thieving level!",
                    6262);
            c.sendFrame126(
                    "@whi@Your thieving level is now "
                            + c.getLevelForXP(c.playerXP[17]) + " .",
                            6263);
            c.sendMessage("Congratulations, you just advanced a thieving level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 18: // Slayer
            c.sendFrame164(12122);
            c.sendFrame126("@gre@Awsome! You just advanced a slayer level!",
                    12123);
            c.sendFrame126(
                    "@whi@Your slayer level is now "
                            + c.getLevelForXP(c.playerXP[18]) + " .",
                            12124);
            c.sendMessage("Congratulations, you just advanced a slayer level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 19: // Farming
            c.sendFrame164(4261);
            c.sendFrame126("@gre@Awsome! You just advanced a farming level!",
                    6207);
            c.sendFrame126(
                    "@whi@Your farming level is now "
                            + c.getLevelForXP(c.playerXP[19]) + " .",
                            6208);
            c.sendMessage("Congratulations, you just advanced a farming level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        case 20: // Runecrafting
            c.sendFrame164(4267);
            c.sendFrame126(
                    "@gre@Awsome! You just advanced a runecrafting level!", 4268);
            c.sendFrame126(
                    "@whi@Your runecrafting level is now"
                            + c.getLevelForXP(c.playerXP[20]) + " .",
                            4269);
            c.sendMessage(
                    "Congratulations, you just advanced a runecrafting level.");
            c.stillgfx(199, c.absY, c.absX);
            c.NpcDialogueSend = true;
            break;

        default:
            break;
        }
    }
}
